/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VenAgregarParada.java
 *
 * Created on May 16, 2010, 3:49:40 PM
 */

package View;

import java.awt.Image;
import java.awt.Toolkit;

/**
 *
 * @author daniel
 */
public class VenAgregarParada extends javax.swing.JFrame {

    /** Creates new form VenAgregarParada */
    public VenAgregarParada() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jP_Fondo = new View.panelDefondo("fondo.jpg");
        jP_Superior = new View.panelDefondo("fondo3.png");
        jL_Direccion = new javax.swing.JLabel();
        jB_Cancelar = new javax.swing.JButton();
        jB_Aceptar = new javax.swing.JButton();
        jL_DatosParada1 = new javax.swing.JLabel();
        jB_Atras = new javax.swing.JButton();
        jL_Ruta2 = new javax.swing.JLabel();
        jL_OrigenRuta = new javax.swing.JLabel();
        jComboB_OrigenRuta = new javax.swing.JComboBox();
        jT_DestinoEspe = new javax.swing.JTextField();
        jL_DestinoRuta = new javax.swing.JLabel();
        jComboB_DestinoRuta = new javax.swing.JComboBox();
        jT_DestinoEspe1 = new javax.swing.JTextField();

        setTitle("Agregar Parada");
        setIconImage(getIconImage());

        jP_Fondo.setBackground(new java.awt.Color(204, 204, 204));

        jP_Superior.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_SuperiorLayout = new javax.swing.GroupLayout(jP_Superior);
        jP_Superior.setLayout(jP_SuperiorLayout);
        jP_SuperiorLayout.setHorizontalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 707, Short.MAX_VALUE)
        );
        jP_SuperiorLayout.setVerticalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 104, Short.MAX_VALUE)
        );

        jL_Direccion.setFont(new java.awt.Font("Vani", 1, 12));
        jL_Direccion.setForeground(new java.awt.Color(255, 255, 255));
        jL_Direccion.setText("Direccion");

        jB_Cancelar.setText("Cancelar");

        jB_Aceptar.setText("Aceptar");

        jL_DatosParada1.setFont(new java.awt.Font("Vani", 1, 12));
        jL_DatosParada1.setForeground(new java.awt.Color(255, 255, 255));
        jL_DatosParada1.setText("Datos Parada");

        jB_Atras.setText("Atras");
        jB_Atras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_AtrasActionPerformed(evt);
            }
        });

        jL_Ruta2.setFont(new java.awt.Font("Vani", 1, 12));
        jL_Ruta2.setForeground(new java.awt.Color(255, 255, 255));
        jL_Ruta2.setText("Ruta:");

        jL_OrigenRuta.setFont(new java.awt.Font("Vani", 1, 12));
        jL_OrigenRuta.setForeground(new java.awt.Color(255, 255, 255));
        jL_OrigenRuta.setText("Origen");

        jComboB_OrigenRuta.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Chacao", "Caricuao", "La California", "Sabana Grande", " " }));
        jComboB_OrigenRuta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboB_OrigenRutaActionPerformed(evt);
            }
        });

        jL_DestinoRuta.setFont(new java.awt.Font("Vani", 1, 12));
        jL_DestinoRuta.setForeground(new java.awt.Color(255, 255, 255));
        jL_DestinoRuta.setText("Destino");

        jComboB_DestinoRuta.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Chacaito", "Montalban", "El Cafetal", "La Urbina" }));

        javax.swing.GroupLayout jP_FondoLayout = new javax.swing.GroupLayout(jP_Fondo);
        jP_Fondo.setLayout(jP_FondoLayout);
        jP_FondoLayout.setHorizontalGroup(
            jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jP_FondoLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(jL_DatosParada1))
            .addComponent(jP_Superior, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jP_FondoLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jP_FondoLayout.createSequentialGroup()
                        .addGap(12, 12, 12)
                        .addGroup(jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jL_Ruta2)
                            .addGroup(jP_FondoLayout.createSequentialGroup()
                                .addComponent(jL_OrigenRuta)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboB_OrigenRuta, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jT_DestinoEspe, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jL_DestinoRuta)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboB_DestinoRuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jT_DestinoEspe1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jL_Direccion))
                .addGap(83, 83, 83))
            .addGroup(jP_FondoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jB_Aceptar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jB_Cancelar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jB_Atras, javax.swing.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE)
                .addGap(440, 440, 440))
        );
        jP_FondoLayout.setVerticalGroup(
            jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jP_FondoLayout.createSequentialGroup()
                .addComponent(jP_Superior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jL_DatosParada1)
                .addGap(15, 15, 15)
                .addComponent(jL_Direccion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jL_Ruta2, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jL_OrigenRuta, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboB_OrigenRuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboB_DestinoRuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jL_DestinoRuta, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jT_DestinoEspe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jT_DestinoEspe1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jB_Aceptar)
                    .addComponent(jB_Cancelar)
                    .addComponent(jB_Atras))
                .addGap(125, 125, 125))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jP_Fondo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jP_Fondo, javax.swing.GroupLayout.PREFERRED_SIZE, 385, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-655)/2, (screenSize.height-311)/2, 655, 311);
    }// </editor-fold>//GEN-END:initComponents

    private void jB_AtrasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_AtrasActionPerformed
            this.dispose();

    }//GEN-LAST:event_jB_AtrasActionPerformed

    private void jComboB_OrigenRutaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboB_OrigenRutaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jComboB_OrigenRutaActionPerformed

    /**
    * @param args the command line arguments
    */
   @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().
                getImage(ClassLoader.getSystemResource("View/taxis [1600x1200].png"));


        return retValue;
    }

  

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB_Aceptar;
    private javax.swing.JButton jB_Atras;
    private javax.swing.JButton jB_Cancelar;
    private javax.swing.JComboBox jComboB_DestinoRuta;
    private javax.swing.JComboBox jComboB_OrigenRuta;
    private javax.swing.JLabel jL_DatosParada1;
    private javax.swing.JLabel jL_DestinoRuta;
    private javax.swing.JLabel jL_Direccion;
    private javax.swing.JLabel jL_OrigenRuta;
    private javax.swing.JLabel jL_Ruta2;
    private javax.swing.JPanel jP_Fondo;
    private javax.swing.JPanel jP_Superior;
    private javax.swing.JTextField jT_DestinoEspe;
    private javax.swing.JTextField jT_DestinoEspe1;
    // End of variables declaration//GEN-END:variables

}
